try:
    a = float(input("输入被除数"))
    b = float(input("输入除数"))

except ZeroDivisionError:
    print("除数不能为0")
except ValueError:
    print("请正确输入")
else:
    print("结果是", a / b)
finally:
    print("程序结束")
